package com.adan.content.model.dto;

import com.adan.base.valid.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 修改课程基本信息dto
 * @date: 2023-06-01 23:27
 */
@Data
@ApiModel(value = "EditCourseDto", description = "修改课程基本信息")
public class EditCourseDto extends AddCourseDto {
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "修改必须指定课程id", groups = {ValidationGroups.Update.class})
    @Null(message = "新增不能指定课程id", groups = {ValidationGroups.Insert.class})
    private Long id;
}
